<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" action="/login">
    <input type="text" name="name"><br/><br/>
    <input type="password" name="password"><br/><br/>
    <input type="submit" value="提交">

    test_value:<p class="test"></p>
</form>
</body>
<script src="https://www.jq22.com/jquery/jquery-2.1.1.js"></script>
<script>
    $(function(){
        $.ajax({
            url:'/tt/get/now/date',
            type:'post',
            success:function(res){
                console.log(res);
                $(".test").text(res);
            },
            error:function (res) {
                console.log(res)
            }
        })
    })
</script>

</html>